QT += core gui widgets charts

TEMPLATE = lib
CONFIG += plugin
QT += charts

# 输出到主程序的测量算法目录（根据调试/发布模式 + 32/64位架构区分路径）
contains(CONFIG, debug) {
    # 调试模式路径
    contains(QMAKE_HOST.arch, i386) {
        # 32位架构
        DESTDIR = ../../build/debug/x86/MeasurementAlgorithms
    } else {
        # 64位架构（兼容x86_64/amd64等）
        DESTDIR = ../../build/debug/x64/MeasurementAlgorithms
    }
} else {
    # 发布模式路径
    contains(QMAKE_HOST.arch, i386) {
        # 32位架构
        DESTDIR = ../../build/release/x86/MeasurementAlgorithms
    } else {
        # 64位架构
        DESTDIR = ../../build/release/x64/MeasurementAlgorithms
    }
}

INCLUDEPATH += ../../MeasurementManagementPlugin

HEADERS += GrayValueMeasurementAlgorithm.h \
           $$PWD/../../MeasurementManagementPlugin/MeasurementAlgorithmBase.h \
           GrayValueMeasurementDrawerFactory.h \
           GrayValueMeasurementResultWidget.h \
           HorizontalSingleLineDrawer.h \
           RectangleRegionDrawer.h \
           VerticalSingleLineDrawer.h \
           ../Common/DraggableRectItem.h \
           ../Common/DraggableLineItem.h

SOURCES += GrayValueMeasurementAlgorithm.cpp \
           GrayValueMeasurementDrawerFactory.cpp \
           GrayValueMeasurementResultWidget.cpp \
           HorizontalSingleLineDrawer.cpp \
           RectangleRegionDrawer.cpp \
           VerticalSingleLineDrawer.cpp \
           ../Common/DraggableRectItem.cpp \
           ../Common/DraggableLineItem.cpp

FORMS += GrayValueMeasurementResultWidget.ui

RESOURCES += \
    icon.qrc
